<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

/**
 * Class Master
 * @package App
 */
class Master extends Model
{
    /**
     * @var array
     */
    protected $fillable=['master_name','master_intro'];

    /**
     * @return \Illuminate\Database\Eloquent\Relations\HasMany
     */
    public function videos()
    {
        return $this->hasMany(MasterVideo::class);
    }

    /**
     * @return \Illuminate\Database\Eloquent\Relations\HasMany
     */
    public function questions()
    {
        return $this->hasMany(Question::class);
    }

    /**
     * @return \Illuminate\Database\Eloquent\Relations\HasMany
     */
    public function answers()
    {
        return $this->hasMany(Answer::class);
    }
}
